package com.burns.flash.javafx.stage;

import javafx.application.Application;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

public class StageExamples2 extends Application {
    public static void main(String[] args) {
        launch(args);
    }


    @Override
    public void start(Stage primaryStage) {
        primaryStage.setTitle("JavaFX App");

        Stage stage = new Stage();
        stage.initModality(Modality.WINDOW_MODAL);

        stage.initOwner(primaryStage);
//        stage.initStyle(StageStyle.DECORATED);

//        A decorated Stage is a standard window with OS decorations (title bar and minimize / maximize / close buttons), and a white background.
//
//        An undecorated Stage is a standard window without OS decorations, but still with a white background.
//
//                A transparent Stage is an undecorated window with transparent background.
//
//                A unified Stage is like a decorated stage, except it has no border between the decoration area and the main content area.
//
//                A utility Stage is a decorated window, but with minimal decorations.
//stage.initStyle(StageStyle.UNDECORATED);
//        stage.initStyle(StageStyle.TRANSPARENT);
//        stage.initStyle(StageStyle.UNIFIED);
stage.initStyle(StageStyle.UTILITY);

        primaryStage.show();

        stage.showAndWait();
    }
}
